/*
 * @Author: WangLi
 * @Date: 2022-09-07 21:59:36
 * @LastEditors: WangLi
 * @LastEditTime: 2022-09-14 05:44:28
 */
export const setTabbar = (dom, index, cb) => {
  if (typeof dom.getTabBar === "function" && dom.getTabBar()) {
    dom.getTabBar().setData({
      selected: index,
    });
    cb && cb(index);
  }
};
